class Animal {
    int age;
    char sex;

    void eat() {
        System.out.println("吃东西");
    }

    void sleep() {
        System.out.println("睡觉");
    }

    void shout() {
        System.out.println("动物叫");
    }

    Animal(int age, char sex) {
        this.age = age;
        this.sex = sex;
    }
}